package day1108.factory.method;

/**
 * @author Mr.ma
 * @since 2022/11/8 20:35
 **/
public class Test {
    public static void main(String[] args) {
        ThinkPadFactory s670Factory = new S670Factory();
        ThinkPad thinkPad = s670Factory.getThinkPad();
        thinkPad.play();
        T460Factory t460Factory = new T460Factory();
        ThinkPad thinkPad1 = t460Factory.getThinkPad();
        thinkPad1.play();
        T560Factory t560Factory = new T560Factory();
        ThinkPad thinkPad2 = t560Factory.getThinkPad();
        thinkPad2.play();
    }
}
